//
//  ST_TicketInfoController.swift
//  btvideo
//
//  Created by Jason on 2021/9/28.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import UIKit


class ST_TicketInfoController: UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.addSubview(avatar_image_view)
        avatar_image_view.snp.makeConstraints { (make) in
            make.centerX.equalToSuperview()
            make.centerY.equalToSuperview()
            make.width.equalTo(300)
            make.height.equalTo(296)
        }
        
        view.addSubview(love_btn)
        love_btn.snp.makeConstraints { (make) in
            make.bottom.equalTo(avatar_image_view).offset(-15)
            make.left.right.equalTo(avatar_image_view)
            make.height.equalTo(60)
        }
    }
    
    fileprivate lazy var avatar_image_view:UIImageView = {
        let control = UIImageView.init(image: ST_ImageUtils.imageName("why_p"))
        return control
    }()
    
    

    fileprivate lazy var love_btn:UIButton = {
            
        let control = UIButton.init(type: UIButton.ButtonType.custom)
        control.addTarget(self, action: #selector(dismiss_action), for: UIControl.Event.touchUpInside)
        return control
    }()
    
    
    @objc fileprivate func dismiss_action(){
        
        goback_previous_controller(animated: false)
    }
}
